Skip to content

Conversation

fcharlie
Copy link

By default on clang 5.0, if lambda capture 'this' is not used, clang report error, this pr fixed

@msftclas
Copy link

@fcharlie,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by Microsoft. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

@ras0219-msft
Copy link
Contributor

This changes the behavior of the lambda in a suboptimal way -- we do not need to capture this for the behavior we need.

What is the exact text of the error? If there's no way to work around it in code besides adding a capture, we should instead suppress it.

@fcharlie
Copy link
Author

2017-07-25 10-09-46

2017-07-25 10-11-16

My clang revision is svn: 308582 , branch release_50

@ras0219-msft
Copy link
Contributor

ras0219-msft commented Jul 25, 2017

I apparently can't read correctly. Thank you for the PR!

@ras0219-msft ras0219-msft merged commit 935917a into microsoft:master Jul 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants